package com.learn.core.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * Description
 *
 * @author zhaohongyu
 * @ClassName LCompetitionSort
 * @date 2021.07.07 09:49
 * @describe 竞赛分类表
 */
@TableName("l_competition_sort")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value="LCompetitionSort对象", description="竞赛分类表")
public class LCompetitionSort implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "competition_sort_id", type = IdType.AUTO)
    private Integer competitionSortId;

    @TableField("competition_sort_name")
    private String competitionSortName;

    @TableField("competition_sort_cover")
    private String competitionSortCover;

    @ApiModelProperty(value = "父节点id")
    @TableField("parent_node")
    private Integer parentNode;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_user")
    private String createUser;

    @TableField("update_time")
    private Date updateTime;

    @TableField("update_user")
    private String updateUser;

    @TableField(exist = false)
    private List<LCompetitionSort> competitionSort;

    public String getCompetitionSortCover() {
        return competitionSortCover;
    }

    public void setCompetitionSortCover(String competitionSortCover) {
        this.competitionSortCover = competitionSortCover;
    }

    public List<LCompetitionSort> getCompetitionSort() {
        return competitionSort;
    }

    public void setCompetitionSort(List<LCompetitionSort> competitionSort) {
        this.competitionSort = competitionSort;
    }

    public Integer getCompetitionSortId() {
        return competitionSortId;
    }

    public void setCompetitionSortId(Integer competitionSortId) {
        this.competitionSortId = competitionSortId;
    }

    public String getCompetitionSortName() {
        return competitionSortName;
    }

    public void setCompetitionSortName(String competitionSortName) {
        this.competitionSortName = competitionSortName;
    }

    public Integer getParentNode() {
        return parentNode;
    }

    public void setParentNode(Integer parentNode) {
        this.parentNode = parentNode;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }
}
